package com.base.logistics.sf.bean.print;

import com.base.logistics.utils.SfGsonBuilder;

import java.io.Serializable;

/**
 * <pre>
 * 订单结果查询请求对象
 * </pre>
 * @since 2021-02-14
 */
public class PrintWaybillRequest implements Serializable {

    /**
     * 寄件人姓名
     */
    private String fromName;

    /**
     * 寄件人电话
     */
    private String fromPhone;

    /**
     * 寄件人公司名称
     */
    private String fromOrgName;

    /**
     * 寄件人地址
     */
    private String fromAddress;

    /**
     * 寄件人邮编
     */
    private String fromPostcode;

    /**
     * 收件人姓名
     */
    private String toName;

    /**
     * 收件人电话
     */
    private String toPhone;

    /**
     * 收件人公司名称
     */
    private String toOrgName;

    /**
     * 收件人地址
     */
    private String toAddress;

    /**
     * 收件人邮编
     */
    private String toPostcode;


    /**
     * 转json
     * @return json数据
     */
    public String toJson() {
        return SfGsonBuilder.create().toJson(this);
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getFromPhone() {
        return fromPhone;
    }

    public void setFromPhone(String fromPhone) {
        this.fromPhone = fromPhone;
    }

    public String getFromOrgName() {
        return fromOrgName;
    }

    public void setFromOrgName(String fromOrgName) {
        this.fromOrgName = fromOrgName;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getFromPostcode() {
        return fromPostcode;
    }

    public void setFromPostcode(String fromPostcode) {
        this.fromPostcode = fromPostcode;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getToPhone() {
        return toPhone;
    }

    public void setToPhone(String toPhone) {
        this.toPhone = toPhone;
    }

    public String getToOrgName() {
        return toOrgName;
    }

    public void setToOrgName(String toOrgName) {
        this.toOrgName = toOrgName;
    }

    public String getToAddress() {
        return toAddress;
    }

    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    public String getToPostcode() {
        return toPostcode;
    }

    public void setToPostcode(String toPostcode) {
        this.toPostcode = toPostcode;
    }

    @Override
    public String toString() {
        return "PrintWaybillRequest{" +
                "fromName='" + fromName + '\'' +
                ", fromPhone='" + fromPhone + '\'' +
                ", fromOrgName='" + fromOrgName + '\'' +
                ", fromAddress='" + fromAddress + '\'' +
                ", fromPostcode='" + fromPostcode + '\'' +
                ", toName='" + toName + '\'' +
                ", toPhone='" + toPhone + '\'' +
                ", toOrgName='" + toOrgName + '\'' +
                ", toAddress='" + toAddress + '\'' +
                ", toPostcode='" + toPostcode + '\'' +
                '}';
    }
}
